package com.scut.chenlujie.library.clink.core;

import java.io.InputStream;


/*
发送包的定义
 */
public abstract  class SendPacket<Stream extends InputStream> extends Packet<Stream>{
    private Stream stream;
    private boolean isCanceled ;

    //public abstract byte[] bytes();
    //改成流可以发送大文件
    //public abstract InputStream open();

    public boolean isCanceled(){
        return isCanceled;
    }

    public void cancel(){
        isCanceled = true;
    }

}
